package com.pure.database.ui.common.style

import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.pure.database.ui.common.theme.createRandomColor

/**
 * FileName : ButtonStyle
 * Author : luqihua
 * Date : 2024/8/16
 * Desc :
 **/
@Composable
fun NormalButton(modifier: Modifier = Modifier, text: String, onClick: () -> Unit) {

    Button(
        modifier = modifier.fillMaxWidth(),
        onClick = onClick,
        colors = ButtonDefaults.buttonColors(containerColor = createRandomColor())
    ) {
        Text(text = text)
    }
}
